package engine;

public class Problem {

    private Equation f;
    private Constraint g;
    private Candidate bestCandidate;
    private Double bestFitness;

    public Problem(Equation _f, Constraint _g) {
        this.f = _f;
        this.g = _g;
    }

    @Override
    public String toString() {
        String toPrint = "";
        toPrint += "f: " + f + "\n";
        toPrint += "g: " + g + "\n";

        return toPrint;
    }

    public Candidate getBestCandidate() {
        return bestCandidate;
    }

    public void setBestCandidate(Candidate bestCandidate) {
        this.bestCandidate = bestCandidate;
    }

    public Double getBestFitness() {
        return bestFitness;
    }

    public void setBestFitness(Double bestFitness) {
        this.bestFitness = bestFitness;
    }

    public Equation getF() {
        return f;
    }

    public void setF(Equation f) {
        this.f = f;
    }

    public Constraint getConstraint() {
        return g;
    }

    public void setG(Constraint g) {
        this.g = g;
    }
}
